using UnityEngine;

namespace Voodoo.Sauce.Internal.DebugScreen.CodeStage.AdvancedFPSCounter
{
	public static class AFPSInputProxy
	{
		public static bool GetHotKeyDown(KeyCode key)
		{
			if (key == KeyCode.None)
			{
				return false;
			}
			Debug.LogError("Looks like you have Input System enabled but no Input System package installed!");
			return false;
		}

		public static bool GetControlKey()
		{
			if (!Input.GetKey(KeyCode.LeftControl) && !Input.GetKey(KeyCode.RightControl) && !Input.GetKey(KeyCode.LeftMeta))
			{
				return Input.GetKey(KeyCode.RightMeta);
			}
			return true;
		}

		public static bool GetAltKey()
		{
			if (!Input.GetKey(KeyCode.LeftAlt))
			{
				return Input.GetKey(KeyCode.RightAlt);
			}
			return true;
		}

		public static bool GetShiftKey()
		{
			if (!Input.GetKey(KeyCode.LeftShift))
			{
				return Input.GetKey(KeyCode.RightShift);
			}
			return true;
		}
	}
}
